﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcctruePMS.Bll.Common
{
    public class SysDictConst
    {
        //序列号类型 hkl
        public const string SN_ORDER_IN = "SLD{1,yyMMdd}{2,3}";//收料
        public const string SN_ORDER_OUT = "FLD{1,yyMMdd}{2,3}";//发料
        public const string SN_ORDER_TAKING = "PDD{1,yyMMdd}{2,2}";//盘点
        public const string SN_ORDER_TRANSFER = "YWD{1,yyMMdd}{2,3}";//移位
        public const string SN_ORDER_PACKING = "ZTD{1,yyMMdd}{2,3}";//组套
        public const string SN_ORDER_UNPACK = "CLD{1,yyMMdd}{2,3}";//拆零
        public const string SN_ORDER_QUALITY = "ZJD{1,yyMMdd}{2,3}";//质检

        public const string SN_TASK_IN = "SL{1,yyMMdd}{2,3}";
        public const string SN_TASK_OUT = "FL{1,yyMMdd}{2,3}";
        public const string SN_TASK_TAKING = "PD{1,yyMMdd}{2,2}";
        public const string SN_TASK_TRANSFER = "YW{1,yyMMdd}{2,3}";
        public const string SN_TASK_PACKING = "ZT{1,yyMMdd}{2,3}";
        public const string SN_TASK_UNPACK = "CL{1,yyMMdd}{2,3}";
        

        public const string SN_ACTION_IN = "SLA{1,yyMMdd}{2,3}";
        public const string SN_ACTION_OUT = "FLA{1,yyMMdd}{2,3}";
        public const string SN_ACTION_TAKING = "PDA{1,yyMMdd}{2,2}";
        public const string SN_ACTION_TRANSFER = "YWA{1,yyMMdd}{2,3}";

        //终端设备工作状态 hkl
        public const string DEVICEWORKSTATUS_ACT = "01";//活动（已登录）
        public const string DEVICEWORKSTATUS_IDLE = "02";//闲置（已登录）
        public const string DEVICEWORKSTATUS_LOGOUT = "03";//未登录
        //仓口状态 hkl
        public const string PORTSTATUS_FREE = "01";//仓口状态：空闲
        public const string PORTSTATUS_BUSY = "02";//仓口状态：忙碌
        //车辆队列号状态 hkl
        public const string QUEUESTATUS_NORMAL = "01";//车辆队列号状态：正常
        public const string QUEUESTATUS_WASTE = "02";//车辆队列号状态：报废

        /// <summary>
        /// 任务单据类型_收料通知单
        /// </summary>
        public const string TAKSORDERTYPE_STOCKIN = "01";
        public const string TAKSORDERTYPE_STOCKOUT = "02";
        /// <summary>
        /// 系统管理员编码
        /// </summary>
        public const string SYSTEMUSER_USERNO = "0000";
        //报警类型
        public const string ALARM_DICT = "alarmType";
        public const string ALARM_ACTIONDIFFWITHTASK = "01";
        public const string ALARM_SHELFLIFEEXPIRE = "02";
        public const string ALARM_TASKDIFFWITHORDER = "03";
        public const string ALARM_EXCEEDDEPOTLIMIT = "04";
        public const string ALARM_TASKOVERDUE = "05";
        public const string ALARM_WINESSTORAGE45 = "06";
        public const string ALARM_WINESSTORAGE60 = "07";
        public const string ALARM_WINESSTORAGE90 = "08";
        
        public const string ACTIONTASKDIFFALARM = "执行结果与任务单不符";
        public const string SHELFLIFEALARM = "存货过期";
        public const string TASKNOTICEDIFFALARM = "任务与通知单物料数量不符";
        public const string UPPERLOWERLIMITALARM = "货位高储与低储";
        public const string TASKOVERDUE = "任务超时未执行";
        public const string WINESSTORAGE = "酒龄超过预警天数";



        ///// <summary>
        ///// 仓库的wbs格式，形如：{2}{3}，这表明一级仓库2位数字，二级仓库3位数字，如果有多级，依次类推
        ///// </summary>
        //public const string WAREHOUSEWBS_FORMAT = "warehousewbs_format";

        //单据状态
        public const string ORDERSTATUS_NEW = "01";
        public const string ORDERSTATUS_COMMIT = "02";
        public const string ORDERSTATUS_ROLLBACK = "03";
        public const string ORDERSTATUS_AUDITOR = "04";
        public const string ORDERSTATUS_ALLOCATE = "05";
        public const string ORDERSTATUS_DELETED = "06";

        //public const string ORDERSTATUS_UNFINISHED = "01";//任务状态：未完成
        //public const string ORDERSTATUS_PROCESSING = "02";//任务状态：处理中
        //public const string ORDERSTATUS_PAUSE = "03";//任务状态：暂停
        //public const string ORDERSTATUS_FINISHED = "04";//任务状态：已完成
        //public const string ORDERSTATUS_DELETED = "05";//任务状态：已删除


        //任务状态
        public const string TASKSTATUS_NEW = "01";
        public const string TASKSTATUS_COMMIT = "02";
        public const string TASKSTATUS_AUDITOR = "03";
        public const string TASKSTATUS_ROLLBACK = "04";
        public const string TASKSTATUS_DELETED = "05";
        public const string TASKSTATUS_SENDING = "06";
        public const string TASKSTATUS_EXECUTING = "07";
        public const string TASKSTATUS_PAUSE = "08";
        public const string TASKSTATUS_WAIT_CHECK = "09";
        public const string TASKSTATUS_FINISHED = "10";

        //public const string TASKSTATUS_UNFINISHED = "01";//任务状态：未完成
        //public const string TASKSTATUS_PROCESSING = "02";//任务状态：处理中
        //public const string TASKSTATUS_PAUSE = "03";//任务状态：暂停
        //public const string TASKSTATUS_FINISHED = "04";//任务状态：已完成
        //public const string TASKSTATUS_DELETED = "05";//任务状态：已删除

        //单据类型对应单据表
        public const string ORDERTYPETABLE = "orderTypeTable_order";
        //public const string ORDERTYPETABLE_STOCKINORDER = "01";
        //public const string ORDERTYPETABLE_STOCKOUTORDER = "02";
        //public const string ORDERTYPETABLE_STOCKTAKINGORDER = "03";
        //public const string ORDERTYPETABLE_PACKINGORDER = "04";
        //public const string ORDERTYPETABLE_UNPADINGORDER = "05";
        //public const string ORDERTYPETABLE_AJUSTINGORDER = "06";

        //单据类型对应任务表
        public const string ORDERTYPETABLE_TASK = "orderTypeTable_task";
        //public const string ORDERTYPETABLE_STOCKINTASK = "";
        //public const string ORDERTYPETABLE_STOCKOUTTASK = "";
        //public const string ORDERTYPETABLE_STOCKTAKINGTASK = "";
        //public const string ORDERTYPETABLE_PACKINGTASK = "";
        //public const string ORDERTYPETABLE_UNPADINGTASK = "";
        //public const string ORDERTYPETABLE_AJUSTINGTASK = "";
    }
}
